package com.peanut.bosskg.entity.pay;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;

/***
 *
 *
 * 描    述：付款查询明细数据
 *
 * 创 建 者：@author lg
 *
 */
@Data
public class PaymentQueryItemsDTO implements Serializable {

    private static final long serialVersionUID = -1L;


    /**商户订单号*/
    @ApiModelProperty(value = "商户订单号")
    private String  merOrderId;


    /**平台订单号*/
    @ApiModelProperty(value = "平台订单号")
    @JsonSerialize(using= ToStringSerializer.class)
    private Long orderNo;


    /**交易状态 0：未处理 1：处理中 2：提现中 3：成功 4：失败*/
    @ApiModelProperty(value = "交易状态")
    private int state = 0;


    /**代付金额*/
    @ApiModelProperty(value = "代付金额")
    private long amt;


    /**返回信息*/
    @ApiModelProperty(value = "返回信息")
    private String resMsg;

    /**订单创建时间*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "订单创建时间")
    private String createTime;

    /**订单完毕时间*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "订单完毕时间")
    private String endTime;
}
